From bc368b21de560c78722a71a115f2927f3e49b37d Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Thu, 1 May 2003 17:48:28 +0000 Subject: [PATCH] bitkeeper revision 1.201 (3eb15dec8MXwnOKDkCBFmw-7vEXcGQ) kernel.c: Clean up Xen output to VGA console. --- xen/common/kernel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/common/kernel.c b/xen/common/kernel.c index 6e92cfefc7..5ee3f2e3cb 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -233,7 +233,6 @@ void init_serial(void) void putchar_serial(unsigned char c) { if ( c == '\n' ) putchar_serial('\r'); - if ( (c != '\n') && (c != '\r') && ((c < 32) || (c > 126)) ) return; while ( !(inb(SERIAL_BASE+LINE_STATUS)&(1<<5)) ) barrier(); outb(c, SERIAL_BASE+TX_HOLD); } @@ -315,9 +314,11 @@ static void putchar (int c) { static char zeroarr[2*COLUMNS] = { 0 }; + if ( (c != '\n') && ((c < 32) || (c > 126)) ) return; + putchar_serial(c); - if (c == '\n' || c == '\r') + if ( c == '\n' ) { newline: xpos = 0; -- 2.30.2